$(document).ready(function () {

  $(window).resize(function () {
    var windowWidth = $(window).width();
    if(windowWidth > 768) {
      $(".information-aside-img").html('').css({'background':'url("../images/faq/1920.png") no-repeat center','height': '450'});
    }else {
      $(".information-aside-img").html('<img src="../images/faq/768.png">').css({'background':'none','height': 'auto'});
    }
  }).trigger("resize");

  // 翻页效果
  $(".pager > li > a").click(function () {
    var index = $(this).parent().index();
    $(".faq-list-content").css("display","none");
    $(".faq-list-title").css("display","none");
    if(index == 0) {
      $(".faq-list-title").css("display","block");
    }
    $(".faq-list-content").eq(index).css("display","block");
    $(".pager li:nth-of-type(3)").find("i").text(index + 1)

  })
});